import 'package:flutter/material.dart';
import 'package:flutter_massage/common_lib/index.dart';
import 'package:flutter_massage/common_lib/ui/common_component.dart';
import 'package:flutter_massage/pages/my/attention/my_attention_logic.dart';
import 'package:flutter_massage/pages/preject/detail/project_detail_page.dart';
import 'package:flutter_massage/values/colors.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

class MyAttentionPage extends GetView<MyAttentionLogic> {
  const MyAttentionPage({super.key});

  @override
  Widget build(BuildContext context) {
    return BaseScaffold(
      titleStr: '我的关注',
      scaffoldBackgroundColor: AppColors.grayF8,
      child: GetBuilder<MyAttentionLogic>(
        init: MyAttentionLogic(),
        assignId: true,
        builder: (logic) {
          return ListView.separated(
            padding: EdgeInsets.all(12.w),
            itemCount: logic.list.length,
            separatorBuilder: (BuildContext context, int index) => CommonMargin.height(12.w),
            itemBuilder: (BuildContext context, int index) {
              return CommonTechnicianItem(logic.list[index]);
            },
          );
        },
      ),
    );
  }
}
